package com.nd.qa.shareplate.service;

import java.util.HashMap;
import java.util.List;

import com.nd.qa.shareplate.model.ShareScript;

public interface ShareScriptService {

	/**
	 * 录入脚本信息
	 * @param script
	 */
	public void insertSciptInfo(ShareScript script) throws Exception;
	/**
	 * 修改脚本信息
	 * @param script
	 * @throws Exception
	 */
	public void updateScriptInfo(ShareScript script) throws Exception;
	
	/**
	 * 删除脚本信息
	 * @param script
	 */
	public void delScript(ShareScript script) throws Exception;
	
	/**
	 * 查询脚本信息
	 * @param script
	 * @return
	 */
	public List<ShareScript> queryScripts(ShareScript script) throws Exception;
	/**
	 * 查询最新的脚本信息
	 * @param script
	 * @return
	 * @throws Exception
	 */
	public List<ShareScript> queryLatestScriptByUserId(ShareScript script) throws Exception;
	/**
	 * 
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public List<ShareScript> queryLimitScript(HashMap<String, Object> param) throws Exception;

    /**
     * 根据scriptId更新shareScript的dentryId
     * @param scriptId，dentryId
     */
    public void updateScriptInfo(Integer scriptId,String dentryId) throws Exception;
    
    
    /**
     * 根据scriptId更新shareScript的dentryId
     * @param scriptId，dentryId
     */
    public void updateScriptUploadStatus(Integer scriptId,Integer uploadStatus) throws Exception;
}
